package com.sbtr.business.calibration.service;

import com.sbtr.common.PageDto;
import com.sbtr.open.calibration.dto.CalibrationCountByClassifyDto;
import com.sbtr.open.calibration.dto.CalibrationDetailsDto;
import com.sbtr.open.calibration.dto.CalibrationImgDto;
import com.sbtr.open.calibration.dto.CalibrationSearchByDetailsDto;

import java.util.List;

/**
 * 标注任务-图像
 */
public interface ICalibrationImgService {
    boolean batchSave(List<CalibrationImgDto> dtos);

    public List<CalibrationCountByClassifyDto> countImgHasCalibrated(Long calibrationDetailsId);

    PageDto<CalibrationImgDto> getImgCalibrate(CalibrationSearchByDetailsDto dto);

    CalibrationImgDto findById(Long id);

    List<CalibrationImgDto> saveImgCalibrate(Long calibrationId,
                                             List<CalibrationImgDto> dtos);

    List<CalibrationImgDto> saveImgSkip(Long calibrationDetailsId,
                                        List<CalibrationImgDto> dtos);

    List<CalibrationImgDto> findCompletedByCalibrationId(Long calibrationId);

    List<CalibrationImgDto> findCompletedByFinisher(Long calibrationId, String finisher);

    boolean updateCalibrationImgCount(Long calibrationId);

    boolean updateCalibrationDetailsImgCount(CalibrationDetailsDto calibrationDetailsDto);

    boolean updateCalibrationImgRecordDaily(CalibrationDetailsDto calibrationDetails);
}
